-- GENERATED SPELL FOR [Spawn of Dimensius] --


function spell0_21780(pUnit, Event) --@Dimensius Feeding,n/a--
pUnit:FullCastSpellOnTarget(37450,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21780', 569, 1)
end

function Sorts_21780(pUnit, Event)
local choix_sorts_21780 = math.random(0, 0)
if choix_sorts_21780 == 0 then
pUnit:RegisterEvent('spell0_21780', 1, 1)
end
end

function mob21780_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21780', math.random(1500, 3000), 1)
end

function mob21780_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21780_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21780_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21780, 1, 'mob21780_Action')
RegisterUnitEvent(21780, 2, 'mob21780_Leave')
RegisterUnitEvent(21780, 3, 'mob21780_Kill')
RegisterUnitEvent(21780, 4, 'mob21780_Die')
